﻿<%@ Control Language="C#" ClassName="LichSuGdkhFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataUserId" runat="server" Text="User ID:" AssociatedControlID="dataUserId" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataUserId" DataSourceID="UserIdUserDataSource" DataTextField="TenDangNhap" DataValueField="UserId" SelectedValue='<%# Bind("UserId") %>' AppendNullItem="true" Required="true" NullItemText="< Xin mời chọn ...>" ErrorText="Required" />
					<data:UserDataSource ID="UserIdUserDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataVeId" runat="server" Text="Vé ID:" AssociatedControlID="dataVeId" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataVeId" DataSourceID="VeIdVeDataSource" DataTextField="TenVe" DataValueField="VeId" SelectedValue='<%# Bind("VeId") %>' AppendNullItem="true" Required="true" NullItemText="< Xin mời chọn ...>" ErrorText="Required" />
					<data:VeDataSource ID="VeIdVeDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataNgayDatVe" runat="server" Text="Ngày Đặt Vé:" AssociatedControlID="dataNgayDatVe" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataNgayDatVe" Text='<%# Bind("NgayDatVe", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataNgayDatVe" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataSoLanDat" runat="server" Text="Số lần đặt vé:" AssociatedControlID="dataSoLanDat" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataSoLanDat" Text='<%# Bind("SoLanDat") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataSoLanDat" runat="server" Display="Dynamic" ControlToValidate="dataSoLanDat" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataSoLanDat" runat="server" Display="Dynamic" ControlToValidate="dataSoLanDat" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


